/*package metz;

import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.util.ArrayList;

import javax.swing.JComboBox;

import ch.unisi.inf.editor.Filter;
import ch.unisi.inf.editor.FilterCommand;



public class ComboBoxTest {

	private JComboBox filterComboBox;
	
	public ComboBoxTest()
	{
	// here starts the code for the JComboBox for the filters
	ArrayList<FilterCommand> filterCommandList = new ArrayList<FilterCommand>();
    
       for(Filter filter : filters){
    	   filterCommandList.add(new FilterCommand(imagePanel, filter));
       }
        
       
       filterComboBox = new JComboBox(filterCommandList.toArray());
       filterComboBox.setSelectedIndex(0);
       add(filterComboBox);
       
       filterComboBox.addItemListener(new ItemListener() {
    	   public void itemStateChanged(ItemEvent iv) {
               System.out.println(iv.getItem());    
    		   imagePanel.applyFilter((Filter)iv.getItem());
				}
            });	
}*/
